#include "syscall.h"

void f(char ch) {
  PutChar(ch);
  ThreadExit();
  //PutChar('\n');
}

void g() {
  PutChar(GetChar());
  PutChar('\n');
  ThreadExit();
}

int main() {
  int n = 65;

  ThreadCreate(f, n);
  ThreadCreate(f, n+1);
  ThreadCreate(f, n+2);
  ThreadCreate(f, n+3);

  ThreadExit();
  //while(1);

  return 0;
}